package com.wisnews.mapper.sr;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.wisnews.pojo.sr.entity.Member;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuyd
 * @since 2021-02-02
 */
@Mapper
public interface MemberMapper extends BaseMapper<Member> {

    @Select(" select * from t_sr_member ${ew.customSqlSegment}")
    IPage<Member> getMemberList(@Param(Constants.WRAPPER) Wrapper<Member> wrapper, IPage<Member> toPage);
}
